package com.ysu.his.entity.drug;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysu.his.base.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 药品信息类
 */
@Data
public class Drug extends BaseEntity
{
    //唯一标识
    private Long id;

    //药品名称
    private String drugName;

    //单位
    private String unit;

    //售价
    private BigDecimal price;

    //生产厂家
    private String manufacturer;

    //药品状态
    private Integer status;

    //生产日期
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date productionDate;

    //过期日期
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expiryDate;

    //库存数量
    private Integer quantity;

    //进货价格
    private BigDecimal unitPrice;

    //存储位置
    private String storageLocation;


}
